Open
Conversation
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requirements
We need devops team to package this
migrate-configpython script to rpc_node and supra version 9 docker image for mainnet, so that operator do not need to install locally @darpan-supraoraclesWe need to have snapshot bucket created for mainnet rpc and validator
Note that aws access key may need to be updated in script
--assume-yesoption to apply default migration values without prompting, it is most common use case for regular nodes, so that it is possible to batch processing config migration for our foundation nodes.IMPORTANT note for DEVOPS
But for specially denoted nodes (i.e. archives, snapshot uploaders), use interactive prompt:
Do not use
--assume-yesfor these nodes, because theenable_snapshotsandenable_pruningshould retain original value instead of using the default.Run the script in interactive prompt and confirm each update, and also check final output of migration .
v7-v9 config migration docs
Install the config migration script
from root dir of repo, you can install it like below
pip install node_management/config_migrationUsage
$ migrate-config --help Usage: migrate-config [OPTIONS] COMMAND [ARGS]... Migration CLI for Supra configs. Options: --help Show this message and exit. Commands: rpc Migrate RPC config. smr Migrate SMR config.example output
E2e migration process from v7 to v9 example script
Note that below scripts are example, should be adapted and not directly used
node_management/migrate_config_and_db_mainnet_v7_to_v9.shis example to be used for our foundation node to migrate config and dbnode_management/migrate_config_v7_to_v9_docker.shis example to be used for migrate config only for node using docker.